package com.cuit.mimall.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cuit.mimall.common.R;
import com.cuit.mimall.entity.Category;
import com.cuit.mimall.entity.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cuit.mimall.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author TeaWu
 * @since 2023-07-04
 */
public interface IShoppingCartService extends IService<ShoppingCart> {


    int addCart(ShoppingCart shoppingCart, User user);
    List<ShoppingCart> getUserCartList(User user);
    R<?> add(ShoppingCart shoppingCart);
    R<?> delete(Integer[] ids);
    R<?> getAll(Integer pageNumber, Integer pageSize);
}
